package com.payment.util;

import lombok.Data;

/**
 * Description:
 *
 * @author weiruibai.vendor
 * Date: 2022/12/12 18:05
 */
@Data
public class CommonResult<T> {

    private Integer code = 100;

    private String message = "OK";

    private T data = null;

    private String trace;

    public CommonResult() {
    }

    public CommonResult(Integer code, T data) {
        this.code = code;
        this.data = data;
    }

    public CommonResult(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public CommonResult(Integer code, String message, T data, String trace) {
        this.code = code;
        this.message = message;
        this.data = data;
        this.trace = trace;
    }
}
